package com.xiaomi;


import com.xiaomi.config.APPConfig;
import com.xiaomi.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ApplicationMain {
    public static void main(String[] args) {
//        ApplicationContext context = new ClassPathXmlApplicationContext("base_scan.xml");
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(APPConfig.class);
        UserController userController = context.getBean("userController", UserController.class);
        userController.login();
//        userController.login_identify("admin");
    }
}
